local Class = require('lua.lang.Class')
local LabelMapper = require('lua.decompiler.virtual.code.mapper.LabelMapper')

--- @class DefaultLabelMapper : LabelMapper
local DefaultLabelMapper = Class({
	__extends = LabelMapper
})

--- @return DefaultLabelMapper
function DefaultLabelMapper:new()
	--- @type DefaultLabelMapper
	local o = {}
	return setmetatable(o, DefaultLabelMapper)
end

--- @return string
function DefaultLabelMapper:getLabelSign()
	return 'L'
end

--- @param i number
--- @return string
function DefaultLabelMapper:get(i)
	return self:getLabelSign() .. tostring(i)
end

--- @param i number
--- @return string
function DefaultLabelMapper:getLabel(i)
	return self:get(i)
end

return DefaultLabelMapper